<template>
  <div id="app">
    <span>{{ipt}}</span>
   <input type="text" @input="changeval" :vlaue="ipt">
   <span>{{ipt1}}</span>
   <input type="text" @input="ipt1=$event.target.value" :value="ipt1">
   <hr>
   <h4>{{count}}</h4>
    <!-- 父组件绑定v-module要传递得值 -->
   <Son v-model="count" ></Son>
   
  </div>
  
</template>
<script>
import Dau from "./components/dau.vue"
import Son from "./components/son"
    export default {
      data(){
        return {
          ipt:"",
          ipt1:"",
          count:1
        }
      },
      methods:{
        changeval(e){
            console.log(e.target.value);
            this.ipt = e.target.value
        }
      },
      components:{
        Son,Dau
      }
    }

</script>


<style>

</style>
